package com.softer.chengxin.traning.service;

import com.softer.chengxin.common.domin.CommonResult;
import com.softer.chengxin.traning.entity.TraningDetail;

import java.util.List;

/**
 * @author Gong Zhiyang
 * @date 2018/10/13
 */
public interface TraningDetailService {
    /**
     * 添加
     * @param traningDetail
     * @return
     */
    CommonResult addTraning(TraningDetail traningDetail);
    /**
     *查询
     */
    List<TraningDetail> getAllListByTranId(String id, String state);
    /**
     *审核查询
     */
    List<TraningDetail> getAllListByTranIdAndDep(String id, String state, String name);

    /**
     * 查询单个
     * @param id
     * @return
     */
    TraningDetail getInfo(String id);

    /**
     * 修改状态
     * @param id
     * @param state
     * @return
     */
    CommonResult changeState(String id, String state, String recRemark, String name);

    /**
     * 删除
     * @param id
     * @return
     */
    CommonResult del(String id);

    /**
     * 修改数据
     * @param traningDetail
     * @return
     */
    CommonResult update(TraningDetail traningDetail);
    /**
     * 查询培训人员的培训记录
     * 用于培训查看页面
     *
     * @param id traning_info ID
     * @return 培训记录
     */
    List<TraningDetail> getTrainingDetailList(int id);
}
